﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zocono.WCS.Domain.EntityInfo;
using Zocono.WCS.Domain.LogDomain;
using Zocono.WCS.Infrastructure.ApllicationDto;
using Zocono.WCS.Infrastructure.ApllicationDto.DtoWcsManage;

namespace Zocono.WCS.Application.AppLogManage
{
    public class LogApp
    {
        private readonly IOperateLogService _IOperateLogService;
        private readonly IInterfaceLogInfoService _IterfaceLogInfoService;
        private readonly IRunLogInfoService _IRunLogInfoService;
        
        public LogApp(IOperateLogService operateLogService, IInterfaceLogInfoService iterfaceLogInfoService, IRunLogInfoService runLogInfoService)
        {
            _IterfaceLogInfoService=iterfaceLogInfoService;
            _IOperateLogService = operateLogService;
            _IRunLogInfoService=runLogInfoService;
        }
        public async Task<PageDto<OperateLogInfoDto>> GetOperateLogInfoAsync(OperateLogInfoDto operateLogInfoDto)
        {
            return await _IOperateLogService.GetOperateLogInfoAsync(operateLogInfoDto);
        }

        public async Task<bool> CreateOperateLogInfoAsync(OperateLogInfoDto operateLogInfoDto)
        {
            return await _IOperateLogService.CreateOperateLogInfoAsync(operateLogInfoDto);
        }

        public async Task<PageDto<InterfaceLogInfoDto>> GetIterfaceLogInfoAsync(InterfaceLogInfoDto interfaceLogInfoDto)
        {
            return await _IterfaceLogInfoService.GetInterfaceLogAsync(interfaceLogInfoDto);
        }

        public async Task<bool> AddInterfaceLogAsync(InterfaceLogInfo iterfaceLogInfo)
        {
            return  await   _IterfaceLogInfoService.AddInterfaceLogAsync(iterfaceLogInfo);
        }

        public async Task<PageDto<RunLogInfoDto>> GetRunLogInfoAsync(RunLogInfoDto runLogInfoDto)
        {
            return await _IRunLogInfoService.GetRunLogInfoAsync(runLogInfoDto);
        }
    }
}
